{% extends "layout.html" %}

{% from "snippet.html" import logined_user_info %}
 
{% block css %}
	{{super()}}
	<link href="{{ url_for('static',filename='css/base.css') }}" rel="stylesheet" type="text/css" />
	<link href="{{ url_for('static',filename='libs/jeasyui/themes/icon.css') }}" rel="stylesheet" type="text/css" />
	<link href="{{ url_for('static',filename='libs/jeasyui/themes/default/easyui.css') }}" rel="stylesheet" type="text/css" />
{% endblock %}


{% block clientscript %}
	{{super()}}
	<script src="{{ url_for('static',filename='js/page.js') }}"></script>
	<script src="{{ url_for('static',filename='js/nano.js') }}"></script>
	<script src="{{ url_for('static',filename='libs/jeasyui/jquery.easyui.min.js') }}"></script>
	<script src="{{ url_for('static',filename='libs/jeasyui/locale/easyui-lang-zh_CN.js') }}"></script>
{% endblock clientscript %}

{% macro show_navs(curr='svn') %}{#主导航栏#}
    <li {% if curr=='svn' %}class="active"{% endif %}><a href="{{ url_for('svn_repository') }}">SVN管理</a></li>
    <li {% if curr=='server' %}class="active"{% endif %}><a href="{{ url_for('server') }}">服务器管理</a></li>
    <li {% if curr=='sys_config' %}class="active"{% endif %}><a href="{{ url_for('sys_config') }}">系统管理</a></li>
    <li {% if curr=='logs' %}class="active"{% endif %}><a href="{{ url_for('logs') }}">更新日志</a></li>
{% endmacro %}

{% block body %}
	<div class="container">
		{% block top %}
		   <div class="navbar navbar-default" role="navigation">
		     <div class="container-fluid">
		       <div class="navbar-header">
		         <a class="navbar-brand" href="#">Dkit</a>
		       </div>
		       <div class="navbar-collapse collapse">
		         <ul class="nav navbar-nav">
		         	{% block nav %}{#主导航栏#}
		         	    {{show_navs()}}
		         	{% endblock %}
		         </ul>
		
		         <p class="nav navbar-text navbar-right">
		           	{{logined_user_info()}}
		              |<a href="javascript:void(0)" onclick="open_div()">修改密码</a>
		         </p>
		    <div class="container-fluid" id="close_div" style="z-index:999;position:absolute;top:45px;left:1050px;  width: 300px;height: 188px; background-color:lightcyan;padding: 0px;display: none;
		    border: solid 2px black;">
		            <div style="float:right;margin: 0px;"><a href="javascript:void(0)" onclick="close_div()"><img alt="" src="/static/libs/jeasyui/themes/icons/close_div.jpg" /></a></div>
		            <div class="forms" >
		
		               <h3><center>修改密码</center></h3>
		
			            <form class="form" action="" method="post" name="modifypwd">
			                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;原始密码：
			                <input id="old_pwd" name="old_pwd" type="password" >  *<br>
			                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;新设密码：
			                <input id="new_pwd" name="new_pwd" type="password" >  *<br>
			                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;确认密码：
			                <input id="confirm_pwd" name="confirm_pwd" type="password" >  *<br>
			                 &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			                <input id="edit_but" name="edit_but" type="button" value="修改"  onclick="edit_password()">
			                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			                <input id="edit_but" name="edit_but" type="button" value="关闭"  onclick="close_div()">
			            </form>
		            </div>
		       </div>
		       </div><!--/.nav-collapse -->
		     </div><!--/.container-fluid -->
		   </div>
		{% endblock top %}
		
		{% include 'flash.html' %}
		
		{% block content %}
		 
		{% endblock content %}
		
		{% block footer %}
			<hr>
		 	<div class='footer'>
		 		<center>
		 			Copyright © 2014 - 2015 Dkit 
		 		</center>
		 	</div>
		{% endblock footer %}
	</div>
{% endblock body %}

